let studentDao = require("../dao/studentDao")

// let result = studentDao.getStudentsData(1,2);
// result.then((data)=>{
//     console.log(data);
// })

//测试总条数
// let result = studentDao.getTolNum();
// result.then((data)=>{
//         console.log(data);
// })

//新增
// let result  = studentDao.inserttudent({name:"百里守约",age:11,gender:"男",tel:"南昌市"});
// result.then((data)=>{
//     console.log(data);
// })

//删除 
// let result  = studentDao.deletestudentById("62f36916d85422487ba118e3");
// result.then((data)=>{
//     console.log(data);
// })

//修改
let result  = studentDao.updataStudentById("62f5fbf37cc080055f6bee24",{age:55});
result.then((data)=>{
    console.log(data);
})

// //修改
// let result  = studentDao.getStudentById("62f46d2d2ac5d62d9cd94d0e")
// result.then((data)=>{
//     console.log(data);
// })